package com.homedo.odin.solution.dao;

import com.homedo.core.common.base.dao.BaseDao;
import com.homedo.odin.solution.model.entity.ColumnResource;
import com.homedo.odin.solution.model.request.mng.column.ColumnResourceRequestBean;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p> 栏目资源（视频等） Mapper 接口 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
public interface ColumnResourceMapper extends BaseDao<ColumnResource> {

    List<ColumnResource> selectByColumnId(@Param("columnId") Long columnId, @Param("isDel") Integer isDel);

    void updateDelByColumnId(@Param("isDel") Integer isDel, @Param("columnId") Long columnId);

    void insertList(@Param("resourceList") List<ColumnResourceRequestBean> resourceList);

    void updateByColumnId(@Param("columnId") Long columnId, @Param("del") Integer del);
}